<template>
	<view>

	<view class="xc-padding-10 xc-flex xc-flex-row-center " >
		<view class="xc-padding-10 xc-flex xc-flex-col-center " >
			<view class="xc-margin-r">
			<text class="cuIcon-roundcheckfill ico-results text-green"></text> 
			</view>
			<view class="xc-flex-1">
				<view class="xc-text-18">订单已支付成功</view>
				<view class="text-gray xc-text-14 xc-margin-t-5">我们会尽快安排发货，请保持电话通畅！</view>
			</view>
		</view>
	</view>
		

		<view class="padding flex flex-direction xc-margin-t-10">
			<button class="cu-btn lg bg-gradual-green" :loading="loading" @tap="gotoOrderList">
				查看订单
			</button>
			
			<!-- <button class="cu-btn lg line-blue" :loading="loading" @tap="buy">
				查看订单
			</button> -->
		</view>
	
	</view>
</template>

<script>
	export default {
		data() {
			return {
				loading: false,
				price: 1,
				providerList: [],
				
				paytype : "yue",
				payway: [
					{
						
						type: "yue",
						title:"余额支付",
				
						tip:"推荐使用",
						ico:"../../static/images/ye.png"
					},
					{
					   
						type: "wxpay",
						title:"微信支付",
						tip:"推荐使用",
						ico:"../../static/images/wx.png"
					}
					
				],
				templateAll:`
				<template>
					<view>
					<view class="xc-padding-10 xc-flex xc-flex-row-center " >
						<view class="xc-padding-10 xc-flex xc-flex-col-center " >
							<view class="xc-margin-r">
							<text class="cuIcon-roundcheckfill ico-results text-green"></text> 
							</view>
							<view class="xc-flex-1">
								<view class="xc-text-18">订单已支付成功</view>
								<view class="text-gray xc-text-14 xc-margin-t-5">我们会尽快安排发货，请保持电话通畅！</view>
							</view>
						</view>
					</view>
						
				
						<view class="padding flex flex-direction xc-margin-t-10">
							<button class="cu-btn lg bg-gradual-green" :loading="loading" @tap="gotoOrderList">
								查看订单
							</button>
							
							<!-- <button class="cu-btn lg line-blue" :loading="loading" @tap="buy">
								查看订单
							</button> -->
						</view>
					
					</view>
				</template>
				
				<script>
					import WXPAY from '../../api/wxpay.js'
					export default {
						data() {
							return {
								loading: false,
								price: 1,
								providerList: [],
								
								paytype : "yue",
								payway: [
									{
										
										type: "yue",
										title:"余额支付",
								
										tip:"推荐使用",
										ico:"../../static/images/ye.png"
									},
									{
									   
										type: "wxpay",
										title:"微信支付",
										tip:"推荐使用",
										ico:"../../static/images/wx.png"
									}
									
								]
							}
						},
						
						
						methods: {
				
							gotoOrderList(){
								uni.redirectTo({
									url:'../ucenter/order_list'
								})
				
							}
						}
					}
				</ script>
				
				<style>
				.ico-results { font-size: 140rpx;}
				.cart-item{ display: flex; padding: 20rpx; background-color: #FFF; border-bottom: 1px solid #EEEEEE; align-items: center;}
				.cart-item-body{ flex:1;}
				.cart-item-check{ margin-right:20rpx;}
				.cart-item-check text{ font-size: 50rpx; color:#4074bd}
				</style>
				
				`
			}
		},
		
		
		methods: {

			gotoOrderList(){
				uni.redirectTo({
					url:'../ucenter/order_list'
				})

			}
		}
	}
</script>

<style>
.ico-results { font-size: 140rpx;}
.cart-item{ display: flex; padding: 20rpx; background-color: #FFF; border-bottom: 1px solid #EEEEEE; align-items: center;}
.cart-item-body{ flex:1;}
.cart-item-check{ margin-right:20rpx;}
.cart-item-check text{ font-size: 50rpx; color:#4074bd}
</style>
